package com.easygo.service.impl;

import com.easygo.mapper.LoginLogMapper;
import com.easygo.service.ILoginLogService;
import com.xuexi.easygo.pojo.LoginLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LoginLogServiceImpl implements ILoginLogService {
    @Autowired
    LoginLogMapper loginLogMapper;

    @Override
    public int addLoginLog(LoginLog log) {
        return loginLogMapper.addLoginLog(log);
    }

    @Override
    public List<LoginLog> getMyLoginLogs(String username) {
        return loginLogMapper.getMyLoginLogs(username);
    }
}
